package com.huluobo.base.net

import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST


/**
 *  Created by LC on 2024/9/18.
 */
interface ApiService {
    @POST(Const.URL_SIGN_START)
    suspend fun signStart(@Body body: RequestBody): Res

    @POST(Const.URL_SIGN_END)
    suspend fun signEnd(@Body body: RequestBody): Res

    @POST(Const.URL_GET_MONTH_SIGN)
    suspend fun getMonthSign(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_PARKING)
    suspend fun getAllParking(): Res

    @POST(Const.URL_GET_CAR_COLOR)
    suspend fun getCarColor(): Res

    @POST(Const.URL_ADD_PARKING)
    suspend fun addParking(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_REPAIR)
    suspend fun getAllRepair(): Res

    @POST(Const.URL_GET_ALL_VISITOR)
    suspend fun getAllVisitor(@Body body: RequestBody): Res

    @POST(Const.URL_ADD_VISITOR)
    suspend fun addVisitor(@Body body: RequestBody): Res

    @POST(Const.URL_DELETE_VISITOR)
    suspend fun deleteVisitor(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_NEWS)
    suspend fun getAllNews(@Body body: RequestBody): Res

    @POST(Const.URL_ADD_NEWS)
    suspend fun addNews(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_PATROL)
    suspend fun getAllPatrol(): Res

    @POST(Const.URL_ADD_PATROL)
    suspend fun addPatrol(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_POINT)
    suspend fun getAllPoint(): Res

    @POST(Const.URL_GET_ALL_NOTICE)
    suspend fun getAllNotice(@Body body: RequestBody): Res

    @POST(Const.URL_ADD_NOTICE)
    suspend fun addNotice(@Body body: RequestBody): Res

    @POST(Const.URL_GET_ALL_DEPARTMENT)
    suspend fun getAllDepartment(@Body body: RequestBody): Res

    @POST(Const.URL_ADD_DEPARTMENT)
    suspend fun addDepartment(@Body body: RequestBody): Res

    @POST(Const.URL_DELETE_DEPARTMENT)
    suspend fun deleteDepartment(@Body body: RequestBody): Res
}